import Axios from "./api";

// 获取所有的商品列表
export let getStoreList = parma => Axios.post("/store/getPoints", parma);

// 获取指定分类下的商品列表
export let getClassList = parma => Axios.post("/store/getclass", parma);

// 添加或修改商品
export let addItem = parma => Axios.post('/store/additem', parma);

// 删除商品
export let deleteItem = parma => Axios.post('/store/deleteItem', parma);

// 自动登录
export let autoLogin = parma => Axios.post('/store/autoLogin', parma)

// 获取轮播图列表
export let getSlide = parma => Axios.post('/store/getSlide', parma)

// 删除轮播图
export let deleteSlide = parma => Axios.post('/store/deleteSlide', parma)